var http = require('http');
var data = JSON.stringify({
    'key': 'a98d061f25ae4e308062ba3bff511736',
    'info': '好迪真好',
    'userid': '123456'
});

var req = http.request({
    method: "post",
    host: "www.tuling123.com",
    protocol: "http:",
    post: "80",
    path: "/openapi/api",
    headers: {
        "Content-Type": "application/json",
        "Content-Length": Buffer.byteLength(data)
    }},function (res) {
        var bufferList = [];
        res.on("data", function (buffer) {
            bufferList.push(buffer);
        });

        res.on("end", function () {
            var result = Buffer.concat(bufferList);
            console.log(result.toString());
            
        })

        
    }
);
req.write(data);